package com.dongjiantong.farmrecords.mapper;

import com.dongjiantong.farmrecords.model.FarmRecordsRetailImmunizationSub;
import com.dongjiantong.mybatis.MyMapper;

import java.util.List;


public interface FarmRecordsRetailImmunizationSubMapper extends MyMapper<FarmRecordsRetailImmunizationSub> {
    /**
     * 根据免疫主表id 查询对应子表免疫记录
     * @param id
     * @return
     */
    List<FarmRecordsRetailImmunizationSub> selectByVaccineId(Long id);

    /**
     * 新建一单免疫记录 (子表信息)
     * @param farmRecordsRetailImmunizationSub
     * @return
     */
    Integer createOne(FarmRecordsRetailImmunizationSub farmRecordsRetailImmunizationSub);
}